package com.michael.demos.ddd.springboot.usecases;


import com.michael.demos.ddd.springboot.domains.Money;

public class ThresholdExceededException extends RuntimeException {

    public ThresholdExceededException(Money threshold, Money actual) {
        super(String.format(
                "Maximum threshold for transferring money exceeded: tried to transfer %s but threshold is %s!", actual,
                threshold
        ));
    }

}
